<?

# Getting weather from yahoo (for NY)

require dirname(__FILE__) . '/../lib/phrowser.class.php';

$b = new phrowser();
$b->url_get('http://weather.yahoo.com/forecast/USNY0176.html');
$b->get_body();

$details = $b->find_all_matches('/<dt>([^<]+)<\/dt><dd>([^<]+)<\/dd>/s');
foreach ( $details as $data )
{
	echo implode(" ", $data) . "\n";
}